import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/system/tenant/report/list',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/system/tenant/report/addOrEdit',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/system/tenant/report/' + data,
    method: 'get'
  })
}
export function remove(data) {
  return request({
    url: '/system/tenant/report/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getReportUrl(data) {
  return request({
    url: '/system/tenant/report/getReportUrl',
    method: 'post',
    data: data
  })
}
export function getReportUrl2(data) {
  return request({
    url: '/system/tenant/report/getReportUrlV2',
    method: 'post',
    data: data
  })
}

